import { request } from '@ruifox-cms/utils'

// 获取站点访问概况
export function getStationOverview(params) {
    return request({
        url: '/station/api/statistic/getOverView',
        method: 'get',
        params
    })
}

// 来访地区统计
export function getStationAreaData(params) {
    return request({
        url: '/station/api/statistic/getAreaData',
        method: 'get',
        params
    })
}

// 获取访问记录
export function getStationRecord(params) {
    return request({
        url: '/station/api/visit/selectPage',
        method: 'get',
        params
    })
}

// 获取页面访问量
export function getStationPvAndUv(data) {
    return request({
        url: '/station/api/statistic/getListData',
        method: 'post',
        data
    })
}